<?php

namespace App\Models\Train\Trains\Repositories\Interfaces;

use App\Models\Train\Trains\Train;
use Illuminate\Support\Collection;

interface TrainsRepositoryInterface
{

    /**
     * 新增车次
     * @return Train
     */
    public function addTrain(array $data): Train;

    /**
     * 通过code查询车次
     * @param string $train_code
     * @return Train|null
     */
    public function findByTrainCode(string $train_code): Train|null;


    public function listByStation(array $params): Collection;

}